<template>
  <div></div>
</template>
<script>
  export default {
    data() {
      return {
      }
    },
    created() {
      const code = this.$route.query.code
      if (code) {
        const data = { code }
        this.$store.dispatch("SSOLogin", data).then(() => {
          this.$router.push({ path: "/" }).catch(()=>{});
        }).catch(() => {
          // this.loading = false;
        });
      }
    }
  }

</script>
<style lang="scss" scoped>

</style>
